KCP etcd upgrade: handle conditional update & add tests#2581
KCP etcd upgrade: handle conditional update & add tests#2581k8s-ci-robot merged 1 commit intokubernetes-sigs:masterfrom
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vincepri The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Tested this on a running cluster got the expected result |
|
/test pull-cluster-api-test |
| if err != nil { | ||
| return false, errors.Wrap(err, "unable to retrieve current image repository from kubeadm configmap") | ||
| } | ||
| if currentImageTag != imageTag { |
There was a problem hiding this comment.
Do we need to do a semver based check or are we just going to set it to whatever is passed in? Asking because want to know what to do for CoreDNS imageTag? 🙂
I thought we discussed something on the lines, update if it is a semver patch update.
There was a problem hiding this comment.
Unless that check is happening elsewhere?
There was a problem hiding this comment.
that check should happen in the validating webhook so capi can reject the change as quickly as possible and not end up in an error loop that requires human intervention to fix
1aa7994 to
60f82b0
Compare
|
@wfernandes @chuckha fixed all the comments, apart from the verification one, which I agree it should probably go in a validation webhook. I think for now it's probably fine do allow any kind of changes to kubeadm, we can restrict it later on |
60f82b0 to
1641e54
Compare
Signed-off-by: Vince Prignano <vincepri@vmware.com>
1641e54 to
44bfb43
Compare
|
/lgtm |
Signed-off-by: Vince Prignano vincepri@vmware.com
What this PR does / why we need it:
Follow-up to #2579
UpdateEtcdMeta./assign @chuckha @ncdc
/cc @wfernandes
/milestone v0.3.0